.class public Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;
.super Lcom/facebook/orca/roboguice/RoboFragment;
.source "ThreadViewDetailsFragmentTab.java"


# instance fields
.field private J:Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f0800f7
    .end annotation
.end field

.field private K:Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f0800f8
    .end annotation
.end field

.field private L:Landroid/widget/Button;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f0800f9
    .end annotation
.end field

.field private M:Lcom/facebook/orca/threadview/ThreadViewActivity;

.field private N:Lcom/facebook/orca/threads/ThreadSummary;

.field private O:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 26
    invoke-direct {p0}, Lcom/facebook/orca/roboguice/RoboFragment;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 26
    iput-object p1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->O:Ljava/lang/String;

    return-object p1
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 147
    invoke-static {p1}, Lcom/facebook/orca/common/util/StringUtil;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    move-object v0, p1

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 26
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->d()V

    return-void
.end method

.method static synthetic b(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 26
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->e()V

    return-void
.end method

.method private c()V
    .locals 6

    .prologue
    const/16 v5, 0x8

    const/4 v4, 0x0

    .line 100
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadSummary;->g()Z

    move-result v0

    .line 101
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v1}, Lcom/facebook/orca/threads/ThreadSummary;->v()Z

    move-result v1

    .line 102
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->J:Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;

    if-eqz v0, :cond_1

    move v3, v5

    :goto_0
    invoke-virtual {v2, v3}, Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;->setVisibility(I)V

    .line 103
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->L:Landroid/widget/Button;

    if-nez v0, :cond_0

    if-nez v1, :cond_2

    :cond_0
    move v0, v5

    :goto_1
    invoke-virtual {v2, v0}, Landroid/widget/Button;->setVisibility(I)V

    .line 105
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadSummary;->f()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->O:Ljava/lang/String;

    .line 106
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->J:Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->O:Ljava/lang/String;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;->a(Ljava/lang/String;Lcom/facebook/orca/threads/ThreadSummary;)V

    .line 107
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->K:Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;->a()V

    .line 108
    return-void

    :cond_1
    move v3, v4

    .line 102
    goto :goto_0

    :cond_2
    move v0, v4

    .line 103
    goto :goto_1
.end method

.method static synthetic c(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 26
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->f()V

    return-void
.end method

.method private d()V
    .locals 3

    .prologue
    .line 111
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadSummary;->u()Z

    move-result v0

    if-nez v0, :cond_0

    .line 125
    :goto_0
    return-void

    .line 114
    :cond_0
    new-instance v0, Lcom/facebook/orca/threadview/ThreadNamePicker;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->O:Ljava/lang/String;

    invoke-direct {v0, v1, v2}, Lcom/facebook/orca/threadview/ThreadNamePicker;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 115
    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab$3;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab$3;-><init>(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadNamePicker;->a(Lcom/facebook/orca/threadview/ThreadNamePicker$Listener;)V

    .line 124
    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadNamePicker;->show()V

    goto :goto_0
.end method

.method private e()V
    .locals 3

    .prologue
    .line 128
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    const-class v2, Lcom/facebook/orca/member/LeaveThreadActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 129
    const-string v1, "threadid"

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v2}, Lcom/facebook/orca/threads/ThreadSummary;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 130
    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->a(Landroid/content/Intent;I)V

    .line 131
    return-void
.end method

.method private f()V
    .locals 3

    .prologue
    .line 134
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->J:Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->O:Ljava/lang/String;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;->a(Ljava/lang/String;Lcom/facebook/orca/threads/ThreadSummary;)V

    .line 135
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->O:Ljava/lang/String;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v1}, Lcom/facebook/orca/threads/ThreadSummary;->f()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/orca/common/util/StringUtil;->a(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 144
    :goto_0
    return-void

    .line 138
    :cond_0
    new-instance v0, Lcom/facebook/orca/server/ModifyThreadParamsBuilder;

    invoke-direct {v0}, Lcom/facebook/orca/server/ModifyThreadParamsBuilder;-><init>()V

    .line 139
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v1}, Lcom/facebook/orca/threads/ThreadSummary;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/ModifyThreadParamsBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/server/ModifyThreadParamsBuilder;

    .line 140
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/ModifyThreadParamsBuilder;->a(Z)Lcom/facebook/orca/server/ModifyThreadParamsBuilder;

    .line 141
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->O:Ljava/lang/String;

    invoke-direct {p0, v1}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/ModifyThreadParamsBuilder;->b(Ljava/lang/String;)Lcom/facebook/orca/server/ModifyThreadParamsBuilder;

    .line 142
    invoke-virtual {v0}, Lcom/facebook/orca/server/ModifyThreadParamsBuilder;->h()Lcom/facebook/orca/server/ModifyThreadParams;

    move-result-object v0

    .line 143
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/server/ModifyThreadParams;)V

    goto :goto_0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 46
    invoke-super {p0, p1, p2, p3}, Lcom/facebook/orca/roboguice/RoboFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    .line 47
    const v0, 0x7f03003f

    invoke-virtual {p0, p1, p2, v0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;I)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()V
    .locals 1

    .prologue
    .line 75
    invoke-super {p0}, Lcom/facebook/orca/roboguice/RoboFragment;->a()V

    .line 76
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    .line 77
    return-void
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 87
    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    .line 88
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 89
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->finish()V

    .line 92
    :cond_0
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 52
    invoke-super {p0, p1}, Lcom/facebook/orca/roboguice/RoboFragment;->a(Landroid/os/Bundle;)V

    .line 54
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/threadview/ThreadViewActivity;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    .line 56
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->J:Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab$1;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab$1;-><init>(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadViewNameAndIconDetailsItem;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 62
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->K:Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;->setThreadId(Ljava/lang/String;)V

    .line 63
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->K:Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;

    invoke-virtual {v0, p0}, Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;->setDetailsTab(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;)V

    .line 65
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->L:Landroid/widget/Button;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab$2;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab$2;-><init>(Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 71
    return-void
.end method

.method a(Lcom/facebook/orca/threads/ThreadSummary;)V
    .locals 0
    .parameter

    .prologue
    .line 95
    iput-object p1, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->N:Lcom/facebook/orca/threads/ThreadSummary;

    .line 96
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->c()V

    .line 97
    return-void
.end method

.method b()V
    .locals 1

    .prologue
    .line 151
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->M:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->h()V

    .line 152
    return-void
.end method

.method public q()V
    .locals 1

    .prologue
    .line 81
    invoke-super {p0}, Lcom/facebook/orca/roboguice/RoboFragment;->q()V

    .line 82
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->K:Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewNotificationsItem;->a()V

    .line 83
    return-void
.end method
